<template>
	<view class="MoreBtn">
		<view class="item" @click="getImage">
			<image src="../../../static/image/Chat/MoreBtn/照片@2x.png"></image>
			<view>照片</view>
		</view>
		<view class="item" @click="goVideoCall">
			<image src="../../../static/image/Chat/MoreBtn/视频@2x.png"></image>
			<view>视频</view>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {};
	},
	methods: {
		getImage(type) {
			this.$emit('handleEvent', 'image', 'upload');
			// uni.chooseImage({
			// 	count: 1,
			// 	sourceType: ['album', 'camera'],
			// 	sizeType: ['original', 'compressed'],
			// 	success: (res) => {
			// 		this.$emit('handleEvent', 'image', res)
			// 	}
			// });
		},
		// 点击视频提示
		goVideoCall() {
			this.$u.toast('暂无功能')
		},
	}
};
</script>

<style lang="scss" scoped>
.MoreBtn {
	width: 100%;
	height: 300rpx;
	background-color: #f3f3f3;
	padding: 40rpx 0 0 80rpx;

	.item {
		display: inline-flex;
		flex-direction: column;
		align-items: center;
		margin-right: 137rpx;
		image {
			width: 50rpx;
			height: 44rpx;
		}

		view {
			margin-top: 14rpx;
			font-size: 24rpx;
			font-weight: 400;
			color: #333333;
			line-height: 40rpx;
		}
	}
}
</style>
